from com.hyj.thrift.data import MyPersonService,ttypes

class MyPersonServiceImpl(MyPersonService.Iface):

    def getPersonByName(self, name):
        print('got client param:'+name)
        person=ttypes.Person()
        person.name=name
        person.age=20
        return person

    def savePerson(self, person:ttypes.Person):
        print(person.name+','+str(person.age))




